package mobilizator.app.list;

import java.util.ArrayList;

import mobilizator.app.MobilizatorApp;
import mobilizator.app.R;
import mobilizator.app.data.Category;
import android.app.Activity;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.widget.TextView;

public class ClothListCategoriesActivity extends Activity {

	private TextView title;
	private ArrayList<Category> categoriesMain;
	private ArrayList<Category> categoriesUser;
	private ClothCategoriesPagerAdapter adapter;
	private ViewPager myPager;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.cloth_list_categories);

		title = (TextView) findViewById(R.id.header_title);
		title.setText("Lista ubrań");
		
		categoriesMain = MobilizatorApp.mdb.getMainCategories();
		categoriesUser = MobilizatorApp.mdb.getUserCategories();

		adapter = new ClothCategoriesPagerAdapter(
				this, categoriesMain, categoriesUser);

		myPager = (ViewPager) findViewById(R.id.cloth_list_categories_viewPager);
		myPager.setAdapter(adapter);
		myPager.setCurrentItem(0);


	}
}
